import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/user/queryUserName',
    method: 'get',
    params
  })
}


export function queryUser() {
  return request({
    url: '/sysuser/queryUser',
    method: 'get',
    
  })
}

export function querybyid(id) {
  return request({
      url: '/sysuser/queryByid/'+id,
      method: 'get',
     
  })
}

export function querydeptId(id) {
  return request({
      url: '/sysuser/querydeptId/'+id,
      method: 'get',
     
  })
}

export function zhcx(data) {
  return request({
      url: '/sysuser/zhcx',
      method: 'post',
      data
  })
}

export function saveSysUser(data) {
  return request({
      url: '/sysuser/saveSysUser',
      method: 'post',
      data
  })
}

export function updateArticle(data) {
  return request({
      url: '/user/updatetrans',
      method: 'put',
      data
  })
}

export function deleteSysuser(userId) {
  return request({
      url: '/sysuser/deleteSysUser/' + userId,
      method: 'delete',
      params: { userId }
  })
}

